<tmpl_include file='breadcrumb.html'>
<tmpl_if name='is_subforums'>
  <table width="900" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="35" colspan="4" class="category_background"><img src="templates/Vram/images/ftitle_icon.png" /> {tmpl_var name='parent_forum_name'}'s subforums</td>
      </tr>
      <tr>
        <td class="info_background" width="50" height="23"></td>
        <td class="info_background">{tmpl_var name='forum'}</td>
        <td class="info_background">{tmpl_var name='l_post'}</td>
        <td class="info_background">{tmpl_var name='topics_posts'}</td>
      </tr>
      <tmpl_loop name='parent_subforums'>
        <tmpl_loop name='forums'>
            <tmpl_loop name='subforums'>
                <tmpl_if name='redirecting'>
                  <tr>
                    <td align="center" class="firstblock"><img src="templates/Vram/images/redirecting_forum.png" /></td>
                    <td class="lastblock extrapadding" colspan="3"><a href="{tmpl_var name='sf_forum_url'}" class="forum_title_header">{tmpl_var name='sf_name'}</a><br><span class="forumdesc">{tmpl_var name='sf_desc'}</span></td>
                  </tr>
                </tmpl_else>
                  <tr>
                    <td align="center" class="firstblock">
                    <tmpl_if name='new_posts'>
                      <img src="templates/Vram/images/forum_new_posts.png" />
                    </tmpl_else>
                      <img src="templates/Vram/images/forum_no_new_posts.png" />
                    </tmpl_if>
                    </td>
                    <td class="altblock extrapadding"><a href="{tmpl_var name='sf_forum_url'}" class="forum_title_header">{tmpl_var name='sf_name'}</a><br><span class="forumdesc">{tmpl_var name='sf_desc'}</span></td>
                    <td class="firstblock latestpost_content extrapadding">
                  <tmpl_if name='latest_post_time'>
                        <a href="{tmpl_var name='latest_post_topic_url'}" class="latestpost_title">{tmpl_var name='latest_post_title'}</a><br />{tmpl_var name='latest_post_date'}  {tmpl_var name='w_at'}  {tmpl_var name='latest_post_ptime'}<br />by <a href="{tmpl_var name='latest_post_user_url'}" class="latestpost_username">{tmpl_var name='latest_post_user'}</a>
                    </tmpl_else>
                        <em>{tmpl_var name='n_posts'}</em>
                    </tmpl_if></td>
                    <td align="center" class="lastblock totalpt extrapadding">{tmpl_var name='total_topics'} {tmpl_var name='w_threads'}<br />{tmpl_var name='total_posts'} {tmpl_var name='w_posts'}</td>
                  </tr>
                </tmpl_if>
            </tmpl_loop>
        </tmpl_loop>
    </tmpl_loop>
    <tr>
        <td height="20"></td>
    </tr>
</table>
</tmpl_if>

<table width="900" border="0" cellspacing="0" cellpadding="0">
	  <tr>
        <td colspan="6" style="padding-left: 20px;">
          <table width="149" border="0" cellspacing="0" cellpadding="0" bgcolor="#00152b">
            <tr>
              <td align="center" style="padding: 9px;"><a href="do.php?item=forum&action=newtopic&forum={tmpl_var name='forum_id'}" class="forumbutton"><img src="templates/Vram/images/new_topic.png" border="0" />&nbsp;&nbsp;NEW TOPIC</a></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td height="35" colspan="6" class="category_background"><img src="templates/Vram/images/ftitle_icon.png" /><span class="cat_main_header_background">{tmpl_var name='forum_name'}</span></td>
      </tr>
      <tr>
        <td class="info_background" width="50" height="23"></td>
        <td class="info_background">{tmpl_var name='topic_title'}</td>
        <td class="info_background">{tmpl_var name='Author'}</td>
        <td class="info_background">{tmpl_var name='views'}</td>
        <td class="info_background">{tmpl_var name='replies'}</td>
        <td class="info_background">{tmpl_var name='last_post'}</td>
      </tr>
      <tmpl_if name='no_topics'>
      <tr>
        <td align="center" class="lastblock totalpt" colspan="6"><br />
          {tmpl_var name="err_message"}<br />
          <br />
          <br /></td>
      </tr>
      </tmpl_else>
      <tmpl_loop name='loop'>
      <tr>
        <td align="center" class="firstblock">
        <tmpl_if name='topic_sticky'>
          <img src="templates/Vram/images/topic_sticky.png" />
        </tmpl_else>
          <tmpl_if name='topic_locked'>
            <img src="templates/Vram/images/topic_locked.png" />
          </tmpl_else>
            <tmpl_if name='new_posts'>
              <img src="templates/Vram/images/new_posts.png" />
            </tmpl_else>
              <img src="templates/Vram/images/no_new_posts.png" />
            </tmpl_if>
          </tmpl_if>
        </tmpl_if>
        </td>
        <td class="altblock extrapadding" height="30"><a href="{tmpl_var name='topic_url'}" class="forum_title_header">{tmpl_var name='topic_title'}</a><br />
        <tmpl_if name='topic_subject'>
            <span class="forumdesc">{tmpl_var name='topic_subject'}</span>
        </tmpl_if></td>
        <td class="firstblock totalpt extrapadding"><a href="{tmpl_var name='author_url'}" class="topic_author">{tmpl_var name='author'}</a></td>
        <td class="altblock totalpt extrapadding"><div align="center">{tmpl_var name='topic_views'}</div></td>
        <td class="firstblock totalpt extrapadding"><div align="center">{tmpl_var name='total_replies'}</div></td>
        <td align="center" class="lastblock latestpost_content extrapadding">{tmpl_var name='last_post_date'}  {tmpl_var name='w_at'}  {tmpl_var name='last_post_ptime'}<br />by <a href="{tmpl_var name='author_url'}" class="latestpost_username">{tmpl_var name='author'}</a></td>
      </tr>      </tmpl_loop>
      </tmpl_if>
</table><br />
<div align="right" class="pagination"><span class="pagination_inside">{tmpl_var name='show_pagination'}</span></div>